# -*- encoding:utf-8 -*-
# !/usr/bin/env python
'''
    python-0811-01.py
    ======================
    @descript: __init__   __new__
    @copyright:nnz
    @author:dln
    @date: 2021/8/11 17:13
    @version:v1.0
'''
class A:
    def __new__(cls, *args, **kwargs):
        return object.__new__(cls)
        pass
    def __init__(self):     #无参
        print()
        self.v_01=1
        self.v_02=2
        pass
pass
v_object=A()
#带参
class B:
    def __init__(self,p_01,p_02):
        print(p_01,p_02)
        self.v_01=p_01
        self.v_02=p_02
        pass
    pass
v_object01=B(2,3)

class C:
    def __init__(self,p_01,p_02):
        print(p_01,p_02)
        self.v_01=p_01
        self.v_02=p_02
        pass
    pass
v_object02=C(20,30)
v_object03=C(20,30)
if v_object02 == v_object03:
    print('是同一个对象')
else:
    print('不是同一个对象')